package com.zyl.courseservice.entity;

/**
 * Auther:郑誉略
 * Date: 2020-12-08 9:49
 * Description: <描述>
 */

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@ApiModel(value = "TClasses对象",description = "班级")
@Data
public class TClasses implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("班级ID")
    @TableId(value = "classes_id",type = IdType.AUTO)
    private int classesId;

    @ApiModelProperty("班级名")
    private String classesName;

    @ApiModelProperty("专业ID")
    @TableId("major_id")
    private int majorId;

    @ApiModelProperty("年级ID")
    @TableId("grade_id")
    private int gradeId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}

